package com.manage.system.api.request.dept;

import com.manage.common.core.valid.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DeptAddOrEditParam {
    @NotNull(message = "部门名称不能为空", groups = {UpdateGroup.class})
    private Long id;
    @NotNull(message = "上级部门不能为空")
    private Long parentId;
    @NotNull(message = "部门名称不能为空")
    private String deptName;
    @NotNull(message = "部门状态不能为空")
    private Boolean status;
    private Integer orderNum;
    /**
     * 祖级列表
     */
    private String ancestors;
    private String remark;
}
